package com.lei.chinese_herbal_medicine.Mapper;

import com.lei.chinese_herbal_medicine.Entity.Herb;
import com.lei.chinese_herbal_medicine.Entity.PageData;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface HerbMapper {
    int deleteByPrimaryKey(String id);

    int insert(Herb record);

    int insertSelective(Herb record);

    Herb selectByPrimaryKey(String id);
    List<Herb> selectHerbsByHerbAndPageData(@Param("herb")Herb herb,@Param("pageData")PageData pageData);
    Integer selectCount();
    int updateByPrimaryKeySelective(Herb record);

    int updateByPrimaryKeyWithBLOBs(Herb record);

    int updateByPrimaryKey(Herb record);
}
